﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GoogleMapForASPNet.ascx.cs" Inherits="MyGMaps.GoogleMapForASPNet"%>
<%@ Register Assembly="System.Web.Extensions, Version= 3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
Namespace="System.Web.UI" TagPrefix="asp" %>



<asp:ScriptManagerProxy ID="ScriptManager1" runat="server">
    <Services>
        <asp:ServiceReference Path="GService.asmx" />
    </Services>
</asp:ScriptManagerProxy>

<div id="Google_Div_Container">
<div id="GoogleMap_Div" style="width:<%=GoogleMapObject.Width %>;height:<%=GoogleMapObject.Height %>;">

</div>
<% if (ShowControls)
   {
    %>

    <input type="button" id="btnFullScreen" value="Full Screen" onclick="ShowFullScreenMap();" />
    &nbsp&nbsp
    <input type="checkbox" id="chkIgnoreZero" onclick="IgnoreZeroLatLongs(this.checked);" />Ignore Zero Lat Longs
    <%} %>
</div>

<div id="directions_canvas">

</div>

<asp:UpdatePanel ID="UpdatePanelXXXYYY" runat="server">
 <ContentTemplate>
    <asp:HiddenField ID="hidEventName" runat="server"/>
    <asp:HiddenField ID="hidEventValue" runat="server" />
 </ContentTemplate>
</asp:UpdatePanel>

<script language="javascript" type="text/javascript">
    function RaiseEvent(pEventName, pEventValue) {
        document.getElementById('<%=hidEventName.ClientID %>').value = pEventName;
        document.getElementById('<%=hidEventValue.ClientID %>').value = pEventValue;
        if (document.getElementById('<%=UpdatePanelXXXYYY.ClientID %>') != null) {
            __doPostBack('<%=UpdatePanelXXXYYY.ClientID %>', '');
        }
    }

</script>

